package cn.ming.application.controller;

import cn.ming.application.service.PushService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhuming
 * @version 1.0.0
 * @description 业务类
 * @since 2022-10-23 10:39
 */
@RestController
@RequestMapping("/push")
public class TestController {
    private final PushService pushService;

    public TestController(PushService pushService) {
        this.pushService = pushService;
    }

    @GetMapping("/{uid}")
    public void pushOne(@PathVariable String uid) {
        pushService.pushMsgToOne(uid, "hello");
    }
}
